﻿using Wise.TimeWarrior.DTO;
namespace Wise.TimeWarrior.Interfaces
{
    /// <summary>
    /// Interface describes configuration service 
    /// </summary>
    public interface IConfiguration
    {
        /// <summary>
        /// Saves Application user configuration
        /// </summary>
        /// <param name="config">config data</param>
        void SaveConfiguration(ConfigurationDto config);

        /// <summary>
        /// Reads Data from config file, if config file not exists returs initial data
        /// </summary>
        /// <returns> Configuration data</returns>
        ConfigurationDto ReadConfiguration();
    }
}
